package com.price.sample.http.person

import com.price.sample.http.beans.WanBaseResponse
import com.price.sample.http.beans.BannerWithDefNPEField
import com.price.sample.http.beans.ListResponseBean
import com.price.sample.http.service.WanAndroidApiService

/**
 *业务层
 *
 */
class HomeRepository {
    private val service by lazy { WanAndroidApiService.getService() }
//    private val service= WanAndroidApiService.getService()

    suspend fun getBanner(): WanBaseResponse<List<BannerWithDefNPEField>> {
        return service.getBanner()
    }

    suspend fun getList(): WanBaseResponse<ListResponseBean> {
        return service.getList()
    }

    suspend fun getTest(): WanBaseResponse<Any> {
        return service.getTest()
    }


}